<?php
	$date = DateTime::createFromFormat('Y-m-d', $student->dob)->format('F d, Y');
	$bdate = explode(' ',$student->dob);
	$bdate_at = explode('-',$bdate[0]);
	$created = explode(' ',$student->created);
	$created_at = explode('-',$created[0]);
?>

<link rel="stylesheet" href="<?=style_url('yahoocssreset');?>">
<link rel="stylesheet" href="<?=style_url('formletter');?>">

<div>

	<table cellPadding="0" cellSpacing="2">
		<tr>
			<td style="width:600px; text-align:center;">
				<p><img src="<?=image_url('school_logo.png');?>" height="120" width="120";/></p>
				<p style="font-size:16; font-weight:bold; color:#450115;"><?//=$school_name;?> WESTFIELDS INTERNATIONAL SCHOOL</p>
				<p style="font-size:10; color:#0058DD;"><?php echo $school_address!='' ? $school_address:''; ?></p>
				<p style="font-size:10; color:#0058DD;">Telephone Nos.:&nbsp;<?php echo $school_telephone!='' ? $school_telephone:''; ?></p>
				<p style="font-size:10; color:#0058DD;">Mobile Numbers:&nbsp;<?php echo $school_mobile!='' ? $school_mobile:''; ?></p>
				<p style="font-size:10; color:#0058DD;"><?php echo $school_website!='' ? $school_website:''; ?><?php echo $school_website!='' && $school_email!='' ? ';':''; ?>&nbsp;<?php echo $school_email!='' ? $school_email:''; ?></p>
			</td>
		</tr>
	</table>

</div>

<div style="font-size:16; text-align:center; font-weight:bold; padding-top:20px;">NEW STUDENT ASSESSMENT &amp; APPLICATION FORM</div>

<div style="padding-top:20px;">
<table cellPadding="4" cellSpacing="4">
	<tr><td style="width:220px;"><?php echo $student->a_f_description!='' ? $student->a_f_description:$feedata->fee_name; ?>:</td><td>Php <?php echo $student->a_f_price!=0.00 ? number_format($student->a_f_price,2,'.',','):number_format($feedata->fee_rate,2,'.',','); ?></td></tr>
	<tr><td colspan="2">&nbsp;</td></tr>
	<tr><td>Student Name:</td><td style="border-bottom:#000 1px solid;"><?php echo ucwords(strtolower($student->firstname)); ?><?php echo $student->middlename!='' ? ' '.ucwords(strtolower($student->middlename)):'';?><?php echo ' '.ucwords(strtolower($student->lastname)); ?> <?php if($student->name_ext!=''){ echo $student->name_ext=='jr' || $student->name_ext == 'sr' ? ucwords(strtolower($student->name_ext)):strtoupper($student->name_ext); }else{ echo ''; } ?></td></tr>
	<tr><td colspan="2">&nbsp;</td></tr>
	<tr><td>Birthday:</td><td style="border-bottom:#000 1px solid;"><?php echo $date; ?></td></tr>
	<tr><td colspan="2">&nbsp;</td></tr>
	<tr><td>Age:</td><td style="border-bottom:#000 1px solid;"><?php echo $student->age; ?> years old</td></tr>
	<tr><td colspan="2">&nbsp;</td></tr>
	<tr><td>Grade Level:</td><td style="border-bottom:#000 1px solid;"><?php echo $student->level_desc; ?></td></tr>
	<tr><td colspan="2">&nbsp;</td></tr>
	<tr><td>Cellphone Number:</td><td style="border-bottom:#000 1px solid;"><?php echo $student->contact_no; ?></td></tr>
	<tr><td colspan="2">&nbsp;</td></tr>
	<tr><td>Schedule of Testing:</td><td style="border-bottom:#000 1px solid;"><?php echo $student->schedule_for_testing; ?></td></tr>
	<tr><td colspan="2">&nbsp;</td></tr>
	<tr><td style="vertical-align:top;">How did you hear of us:</td><td><?php echo $student->hear_from; ?></td></tr>
</table>
</div>